
import {http} from '../utils'

console.log('router,http', http)

const NewsList = params => http.get('/api/news/list', params)
const Addnews = params => http.post('/api/news/add', params)
const Delnews = params => http.get('/api/news/delete', params)
const DelAllnews = params => http.post('/api/news/deleteall', params)
const getNews = params => http.get('/api/news/get', params)
const newstype = params => http.get('/api/newstype/list', params)

export {
    NewsList,
    Addnews,
    Delnews,
    DelAllnews,
    getNews,
    newstype,
}
